# tuple是元组
tuple = (10, 20, 30)
# tuple.
print(tuple)
# 单个元素的元组
tuple = (10,)
print(tuple)
print(type(tuple))
tuple = (10)
print(type(tuple))
tuple = ('10')
print(type(tuple))

# 元组的常见操作
print('------------查询,不支持增删改等操作------------------')
tuple3 = (10, 20, 30, 10)
# 下标查找
print(tuple3[1])
# count 统计出现次数
print(tuple3.count(10))
# index 对应的下标
print(tuple3.index(10))
# len 长度
print(len(tuple3))
print()
print()
